package org.moonshiner.ctci.c1.q4;

public class Q4 {

	public static final String[] INPUT_DATA = {"My link","m qm q w w  w", "z x s e q s"}; 
	
	public static void main(String[] args) {
		
		SpaceChanger changer = new SpaceChanger();
		
		for (int i = 0; i < INPUT_DATA.length; i++) {
			System.out.println(changer.mySpaceChanger(INPUT_DATA[i],INPUT_DATA[i].split(" ").length-1));
		}
		
	}
	
}
